package com.barnaul.area.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.barnaul.area.domain.Register;

@Repository
public class RegisterDAOImpl implements RegisterDAO {

	@Autowired
	private SessionFactory sessionFactory;
	
	public void addRegister(Register register) {
		sessionFactory.getCurrentSession().save(register);
	}

}
